#include<fstream>
#include<string>

struct Point
{
   int x, y;
};

Point get_current_point(int i, int r)
{  
   Point point;
   switch (i % 4)
   {
   case 0:
      point.x = -r;
      point.y = -r;
      break;
   case 1:
      point.x = r + 1;
      point.y = -r;
      break;
   case 2:
      point.x = r;
      point.y = r;
      break;
   case 3:
      point.x = -r;
      point.y = r;
      break;
   }
   return point;  
}

void ensure_radius(int i, int &r)
{
   if (i % 4 == 1)
   {
      r++;
   }
}

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");
   int n;
   input >> n;
   Point curpoint;
   int r = 0;
   for(int i = 0; i < n; i++)
   {		
      curpoint = get_current_point(i, r);
      ensure_radius(i, r);    
      output << curpoint.x << " " << curpoint.y << "\n";
   }
   return 0;
}

